/* vue */
import { defineComponent } from "vue";
/* mixin */
import VersionControlBaseMixin from '@src/mixins/versionControlMixin/base';
/* version serviceProvider */
import {
  isShowServiceProviderModule,
  isShowServiceProviderSettle
} from '@shb-lib/version'

export default defineComponent({
  name: "version-control-service-provider-mixin",
  mixins: [VersionControlBaseMixin],
  computed: {
    /** 
     * @description 服务商 模块 版本控制
    */
    serviceProviderVersionControl(): Record<string, boolean> {
      return {
        isShowServiceProviderModule: isShowServiceProviderModule(this._versionControlMap),
        isShowServiceProviderSettle: isShowServiceProviderSettle(this._versionControlMap),
      }
    },
    _isShowServiceProviderModule(): boolean {
      return this.serviceProviderVersionControl.isShowServiceProviderModule
    },
    _isShowServiceProviderSettle(): boolean {
      return this.serviceProviderVersionControl.isShowServiceProviderSettle
    }
  }
})
